package com.excel.poi.sax;

import lombok.Data;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

/**
 * @author zw
 * @Description 描述
 * @create /2022/3/25
 */
@Data
public class ExcelColumnProperty implements Comparable<ExcelColumnProperty> {
    /**
     */
    private Field field;

    /**
     */
    private int index = 99999;

    /**
     */
    private List<String> head = new ArrayList<String>();

    /**
     */
    private String format;

    public int compareTo(ExcelColumnProperty o) {
        int x = this.index;
        int y = o.getIndex();
        return (x < y) ? -1 : ((x == y) ? 0 : 1);
    }
}
